Adwaita: position needs-attention dot in rtl
authorLapo Calamandrei <calamandrei@gmail.com>
Tue, 22 Jul 2014 18:21:30 +0000 (20:21 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Tue, 22 Jul 2014 18:21:30 +0000 (20:21 +0200)
gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index 0ca81f44d5dc01106a5b3ec0cfe59fbaff01c6fc..975bba1269a37438c35c0614a080c705777ccc99 100644 (file)
@@ -253,7 +253,6 @@ $_dot_color: if($variant=='light', $selected_bg_color,
                                    lighten($selected_bg_color,15%));
 @keyframes needs_attention {
   from {
-    //background-size: 0 0, 0 0;
     background-image: -gtk-gradient(radial,
                                     center center, 0,
                                     center center, 0.01,
@@ -261,7 +260,6 @@ $_dot_color: if($variant=='light', $selected_bg_color,
                                     to(transparent));
   }
   to {
-    //background-size: 6px 6px, 6px 6px;
     background-image: -gtk-gradient(radial,
                                     center center, 0,
                                     center center, 0.5,
@@ -415,6 +413,10 @@ $_dot_color: if($variant=='light', $selected_bg_color,
       @if $variant == 'light' { background-position: right 3px, right 4px; }
       @else { background-position: right 3px, right 2px; }
       &:backdrop { background-size: 6px 6px, 0 0;}
+      &:dir(rtl) {
+        @if $variant == 'light' { background-position: left 3px, left 4px; }
+        @else { background-position: left 3px, left 2px; }
+      }
     }
     &.needs-attention:active > GtkLabel,
     &.needs-attention:active > GtkImage {
index b6750192736f21f0ba61759f776c21efce147393..a3d891da3c46306cb3414ae09e813533c8d6b700 100644 (file)
       background-position: right 3px, right 2px; }
       .stack-switcher > .button.needs-attention > GtkLabel:backdrop, .stack-switcher > .button.needs-attention > GtkImage:backdrop {
         background-size: 6px 6px, 0 0; }
+      .stack-switcher > .button.needs-attention > GtkLabel:dir(rtl), .stack-switcher > .button.needs-attention > GtkImage:dir(rtl) {
+        background-position: left 3px, left 2px; }
     .stack-switcher > .button.needs-attention:active > GtkLabel, .stack-switcher > .button.needs-attention:active > GtkImage {
       animation: none;
       background-image: none; }
index bdcbba8822caed0e554092f029f1139d1b245f32..96e8a717744ca1794e0dea6b6efdb023824dd2fd 100644 (file)
       background-position: right 3px, right 4px; }
       .stack-switcher > .button.needs-attention > GtkLabel:backdrop, .stack-switcher > .button.needs-attention > GtkImage:backdrop {
         background-size: 6px 6px, 0 0; }
+      .stack-switcher > .button.needs-attention > GtkLabel:dir(rtl), .stack-switcher > .button.needs-attention > GtkImage:dir(rtl) {
+        background-position: left 3px, left 4px; }
     .stack-switcher > .button.needs-attention:active > GtkLabel, .stack-switcher > .button.needs-attention:active > GtkImage {
       animation: none;
       background-image: none; }